<script setup lang="ts">
/***课程介绍 */
import { useRouter, useRoute } from 'vue-router';
import { ElButton } from "element-plus"

defineOptions({ name: 'Home' });
const router = useRouter();
const route=useRoute()

const toLearn = () => {
  console.log(route, "route")
  router.push('/lesson/learn')
}
</script>

<template>
  <div class="h-[80px] bg-[pink]">
    ---intro intro intro
    <ElButton type="primary" @click="toLearn">===to learn</ElButton>
  </div>
</template>
